package com.camel.docker.controller;

import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Value;

public abstract class BaseController {

    @Value("${pageInfo.pageNum}")
    public Integer pageNum;

    PageInfo getPageInfo() {
        PageInfo pageInfo = new PageInfo();
        pageInfo.setPageSize(pageNum);
        pageInfo.setPageNum(1);
        return pageInfo;
    }
}
